package com.xd.community.mapper;

import com.xd.community.model.entity.Fans;

import java.util.List;

/**
 * Demo class
 *
 * @author keriezhang
 * @date 2016/10/31
 */
public interface FansMapper
{
	int deleteByPrimaryKey(Integer id);

	int insert(Fans record);

	int insertSelective(Fans record);

	Fans selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Fans record);

	int updateByPrimaryKey(Fans record);

	/**
	 * 根据OpenID查询粉丝
	 */
	Fans findFansByOpenID(String openid);

	/**
	 * 重置粉丝分组
	 */
	int updateFansGroup(int gid);

	List<Fans> selectFansList();

}